package com.octopus.kernal.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.validation.Errors;
import org.springframework.validation.Validator;

public abstract class AbstractValidator implements Validator {
	
	@Autowired
	protected MessageSource messageSource;
	
    public boolean supports(Class<?> aClass) {
        return false;
    }

    public void validate(Object o, Errors errors) {

    }

	public MessageSource getMessageSource() {
		return messageSource;
	}
}
